home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Jul 89 / W0103-Changing menus on t-Jul89 < prev    next >
Encoding:
Text File  |  1989-08-22  |  889 b   |  21 lines  |  [TEXT/GEOL]

  1. Item    9405155                         21-July-89        09:22
  2.  
  3. From:   CHESLEY1                        Chesley, Harry
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.  
  7. Sub:    Changing menus on the fly?
  8.  
  9. I'd like to have the menu bar change depending upon which window is currently
  10. selected (actually, which view), since I have windows with very different
  11. functions, and functions which are defined at run-time, not compile-time. The
  12. best example that comes to mind is HyperCard adding a Paint menu when a paint
  13. tool is selected. Can someone tell me what's the "right" way to do that? (Or
  14. point me to a previous discussion of this topic.)
  15.  
  16. I am currently maintaining a MenuHandle associated with each of the views
  17. involved. Then in DoSetupMenus, I do DeleteMenu/InsertMenu/DrawMenuBar, but
  18. only if it's different than the menu that's already there. This works. Is it
  19. elegant?
  20.  
  21.